Developer --> Technical Publications
PATHMac OS 8 Developer Documentation > Networking and Communications > AppleShare >

User Authentication Modules


UAMSleep

Yield time to the AppleShare Registry.

extern UInt32 UAMSleep (UInt32 msec);
msec
Specifies in milliseconds the time to sleep.
function result
NoErr if not awakened by a call to UAMWakeup . If awakened by a call to UAMWakeup , UAMSleep returns the value with which UAMWakeup was called.
DISCUSSION

The UAMSleep function gives the AppleShare Registry time to run. You should call UAMSleep before you make a network call. When the network call completes, your completion routine should call UAMWakeup to wake up the sleeping thread.

If your completion routine calls UAMWakeup before it calls UAMSleep (for example, when an asynchronous operation completes before you can call UAMSleep ), UAMSleep returns immediately.


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)